<template>
	<view class="content">
		<!-- getbgyxinfo(e) 用于接收html数据和原始数据，
			showdone控制完成按钮是否显示，
			uploadurl设置图片和视频上传地址，
			filename设置上传字段名
			所有元素支持长按菜单
		-->
		<bgyxedit @bgyxchange="getbgyxinfo" :showdone="true" uploadurl="https://qsd.haoleen.com/getdata/getdata/appupimg" filename="img"></bgyxedit>
	</view>
</template>

<script>
	import bgyxedit from '@/components/bgyxedit/bgyxedit.vue';
	export default {
		data() {
			return {
				
			}
		},
		components: {
			bgyxedit
		},
		onLoad() {

		},
		methods: {
			getbgyxinfo:function(e){
				//获取富文本内容，默认模式拼接的html
				console.log(e.html)
				//获取原始数据,可自行循环拼接html数据
				console.log(e.data)
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
